<script setup lang="ts">
import { useAccountStore } from '@/stores/account.ts'

const countStore = useAccountStore()

function update() {
  countStore.account.name = '小刘同学'
}
</script>

<template>
  <p>这是主页</p>
  <p>当前登录的账号是：{{ countStore.account.name }}</p>
  <p>当前登录的邮箱是：{{ countStore.account.email }}</p>
  <a-button type="primary" @click="update">点击修改name</a-button>
  <a-button type="primary" @click="countStore.clear">重置</a-button>
  <router-link to="/space/apps">跳转到应用列表</router-link>
</template>
<style scoped></style>
